/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package onpu_dms_xls.kernel.common;

import onpu_dms_xls.exceptions.MyException;

/**
 *
 * @author snbm
 */
public enum VariableType_XLSVisibilityTypes {

    VISIBLE("VISIBLE"), NOT_VISIBLE("NOT_VISIBLE");
    private String value;

    private VariableType_XLSVisibilityTypes(String value) {
        this.value = value;
    }

    public String getValue() {
        return this.value;
    }

    @Override
    public String toString() {
        return getValue();
    }

    public static VariableType_XLSVisibilityTypes getTypeFromName(String name) throws MyException {
        for (VariableType_XLSVisibilityTypes vd : VariableType_XLSVisibilityTypes.values()) {
            if (vd.getValue().equals(name)) {
                return vd;
            }
        }
        throw new MyException("VariableType_InputRelationTypes", "getTypeFromName", "wrong name");

    }
}

